package com.xinshujia.utils;

import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-23 12:51       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 */
public class AliPassWord {
    public static void main(String[] args) {
        PasswordEncoder delegatingPasswordEncoder = PasswordEncoderFactories.createDelegatingPasswordEncoder();
        String encode = delegatingPasswordEncoder.encode("123456");
        System.out.println(encode.substring(10, 20));
    }
}